package com.j283_5.wisdom_park.vo.car_management;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CarRecordVo {
    //车辆详情Id
    private Integer cinf_id;
    //进出详情id
    private Integer crec_id;

    //车牌编号
    private String cinfMark;

    //车辆型号
    private String cinfType;

    //车主姓名
    private String ownerName;

    //联系方式
    private String ownerPhone;

    //车辆类型
    private Integer cinfClass;

    //进出方向
    private String creaIoName;

    //进出时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Timestamp creaTime;

    public CarRecordVo(Integer cinf_id, Integer crec_id, String creaIoName, Timestamp creaTime) {
        this.cinf_id = cinf_id;
        this.crec_id = crec_id;
        this.creaIoName = creaIoName;
        this.creaTime = creaTime;
    }

    public CarRecordVo(String cinfMark, String cinfType, String creaIoName, Timestamp creaTime) {
        this.cinfMark = cinfMark;
        this.cinfType = cinfType;
        this.creaIoName = creaIoName;
        this.creaTime = creaTime;
    }

    public CarRecordVo(String cinfMark, Integer cinfClass, String creaIoName, Timestamp creaTime) {
        this.cinfMark = cinfMark;
        this.cinfClass = cinfClass;
        this.creaIoName = creaIoName;
        this.creaTime = creaTime;
    }
}
